<?php 
//
$input_menu_giaoban = array(
		'name' => 'menu_giaoban',
		'autofocus' => 'TRUE',
		'value' => $this->input->post()?set_value('menu_giaoban'):$menu->menu_name_giaoban,
		'class' => 'styleinput'
);
$input_order_giaoban = array(
		'name' => 'order_giaoban',
		'value' => $this->input->post()?set_value('order_giaoban'):$menu->order_giaoban,
		'class' => 'styleinput'
);
$select_cha_giaoban = array(
		0 => 'Unknown'
);
foreach($menu_tin as $menu){
	$select_cha_giaoban[$menu->id_type_giaoban] = $menu->menu_name_giaoban;
}
$button = array(
		'name' => 'button',
	    'id' => 'button',
	    'value' => 'true',
	    'type' => 'submit',
	    'content' => 'Sửa menu',
		'class' => 'stylebutton'
);
echo "<div class='content'> ";
echo "<h2>Sửa menu tin</h2>";
echo form_open("danhsachmenutin/edit/".$menu->id_type_giaoban);
echo form_label('Tên menu',"",array('class'=>'stylelabel'))."</br>";
echo form_input($input_menu_giaoban).form_error('menu_giaoban')."</br>";

echo form_label('Vị trí',"",array('class'=>'stylelabel'))."</br>";
echo form_input($input_order_giaoban).form_error('menu_giaoban')."</br>";

echo form_label('Menu cha',"",array('class'=>'stylelabel'))."</br>";
echo form_dropdown('cha_giaoban',$select_cha_giaoban,$menu->cha_giaoban,'class="styledrop"')."</br>";

echo form_button($button);

echo form_close();
echo '<div style="clear:both"></div></div></div>';
?>